package com.example.springioc.dao;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Repository;

@Data
@Repository  // 将Captcha对象存入spring中
@ConfigurationProperties(prefix = "captcha") // 使用该注解去配置文件中找captcha内容给Captcha对象初始化
public class Captcha {
    public Integer width;
    public Integer height;
    public Integer codeCount;
    public Integer lineCount;
}
